home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / Visual Cafe Pro v1.0 / VISCAFE.BIN / DefaultData.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-06-19  |  2.3 KB  |  85 lines

  1. package symantec.itools.db.awt;
  2.  
  3. import java.awt.Image;
  4.  
  5. public class DefaultData implements Data {
  6.    int row;
  7.    int col;
  8.    DataSource dataSource;
  9.  
  10.    public DefaultData(DataSource var1) {
  11.       this.dataSource = var1;
  12.    }
  13.  
  14.    public void setRowAndCol(int var1, int var2) {
  15.       this.row = var1;
  16.       this.col = var2;
  17.    }
  18.  
  19.    public int type() {
  20.       return this.dataSource.type(this.row, this.col);
  21.    }
  22.  
  23.    public boolean isEditable(int var1, int var2) {
  24.       return this.dataSource.isDataEditable(var1, var2);
  25.    }
  26.  
  27.    public boolean changed() {
  28.       return false;
  29.    }
  30.  
  31.    public void rollback() {
  32.    }
  33.  
  34.    public void commit() {
  35.    }
  36.  
  37.    public boolean supportsChoice() {
  38.       return this.dataSource.supportsChoice(this.row, this.col);
  39.    }
  40.  
  41.    public Data[] getChoices() throws TypeNotSupported {
  42.       return this.dataSource.getChoices(this.row, this.col);
  43.    }
  44.  
  45.    public void setText(String var1) {
  46.       this.dataSource.setText(this.row, this.col, var1);
  47.    }
  48.  
  49.    public void insertChar(int var1, char var2) {
  50.       this.dataSource.insertChar(this.row, this.col, var1, var2);
  51.    }
  52.  
  53.    public void setText(char var1) {
  54.       this.setText(String.valueOf(var1));
  55.    }
  56.  
  57.    public void appendChar(char var1) {
  58.       this.dataSource.appendChar(this.row, this.col, var1);
  59.    }
  60.  
  61.    public void clearText() {
  62.       this.dataSource.clearText(this.row, this.col);
  63.    }
  64.  
  65.    public void deleteChar(int var1) {
  66.       this.dataSource.deleteChar(this.row, this.col, var1);
  67.    }
  68.  
  69.    public String subString(int var1, int var2) {
  70.       return this.dataSource.subString(this.row, this.col, var1, var2);
  71.    }
  72.  
  73.    public void setImage(Image var1) {
  74.       this.dataSource.setImage(this.row, this.col, var1);
  75.    }
  76.  
  77.    public String toString() {
  78.       return this.dataSource.toString(this.row, this.col);
  79.    }
  80.  
  81.    public Image toImage() {
  82.       return this.dataSource.toImage(this.row, this.col);
  83.    }
  84. }
  85.